package org.vehicle.dao;

import java.util.List;
import java.util.Map;

import org.vehicle.dao.base.BaseDaoMapper;
import org.vehicle.entity.PersonInfo;


public interface PersonInfoMapper extends BaseDaoMapper<PersonInfo, Long>{
	/**
	 * 通过身份证号查询人员信息
	 * @param certificateCode
	 * @return
	 */
    public PersonInfo findPersonInfoByCertificateCode(String certificateCode);
    
    /**
	 * 通过车牌号查询人员信息
	 * @param vehicleLicense
	 * @return
	 */
	public List<PersonInfo> findPersonInfoByVehicleLicense(String vehicleLicense);
	/**
	 * 通过车牌号查询人员及告警信息分页
	 * @param map
	 * @return
	 */
    public List<Map<String, Object>> findPersonInfoAndAlertPage(Map<String, Object> map);
    /**
	 * 通过车牌号查询人员及告警信息数量
	 * @param map
	 * @return
	 */
    public int findPersonInfoAndAlertCount(Map<String, Object> map);
    /**
	 * 通过车辆id删除用户信息
	 * @param vehicleLicense
	 */
	public void deletePersonInfoByVehicleInfoId(Long vehicleInfoId);
}